<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html lang="en">
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title>wans</title>

        <%--<%@include file="../../include/_admin_head.jsp" %>--%>
        <%
            String path = request.getContextPath();
            String basePath = request.getScheme() + "://"
                    + request.getServerName() + ":" + request.getServerPort()
                    + path + "/";
        %>
        <c:set value="<%=path%>" var="path"/>


        <meta charset="UTF-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1">

        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
        <!-- END GLOBAL MANDATORY STYLES -->
        <!-- BEGIN PAGE LEVEL PLUGINS -->
        <link href="${path}/media/assets/global/plugins/select2/css/select2.min.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/global/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css" rel="stylesheet" type="text/css" />
        <!-- END PAGE LEVEL PLUGINS -->
        <!-- BEGIN THEME GLOBAL STYLES -->
        <link href="${path}/media/assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
        <link href="${path}/media/assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME GLOBAL STYLES -->
        <!-- BEGIN THEME LAYOUT STYLES -->
        <link href="${path}/media/assets/layouts/layout/css/layout.min.css" rel="stylesheet" type="text/css" />
        <link href="${path}/media/assets/layouts/layout/css/themes/darkblue.min.css" rel="stylesheet" type="text/css" id="style_color" />
        <link href="${path}/media/assets/layouts/layout/css/custom.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME LAYOUT STYLES -->
        <link rel="shortcut icon" href="favicon.ico" /> </head>

        <!-- BEGIN PAGE LEVEL STYLES -->
        <!-- END PAGE LEVEL STYLES -->
    </head>
    <!-- END HEAD -->

    <body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
        <!-- BEGIN HEADER -->
        <div class="page-header navbar navbar-fixed-top">
            <!-- BEGIN HEADER INNER -->
            <div class="page-header-inner ">
                <!-- BEGIN LOGO -->
                <div class="page-logo">
                    <a href="index.html">
                        <img src="${path}/media/img/wanslogo.png" style="width:24px;" alt="logo" class="logo-default" /> </a>
                    <div class="menu-toggler sidebar-toggler"> </div>
                </div>
                <!-- END LOGO -->
                <!-- BEGIN RESPONSIVE MENU TOGGLER -->
                <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> </a>
                <!-- END RESPONSIVE MENU TOGGLER -->
                <!-- BEGIN TOP NAVIGATION MENU -->
                <div class="top-menu">
                    
                </div>
                <!-- END TOP NAVIGATION MENU -->
            </div>
            <!-- END HEADER INNER -->
        </div>
        <!-- END HEADER -->
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            <!-- BEGIN SIDEBAR -->
            <div class="page-sidebar-wrapper">
                <!-- BEGIN SIDEBAR -->
                <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
                <!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
                <div class="page-sidebar navbar-collapse collapse">
                    <!-- BEGIN SIDEBAR MENU -->
                    <%@include file="../../include/_admin_menu.jsp" %>
                    <!-- END SIDEBAR MENU -->
                    <!-- END SIDEBAR MENU -->
                </div>
                <!-- END SIDEBAR -->
            </div>
            <!-- END SIDEBAR -->
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">



                    <div class="row">
                        <div class="col-md-12">
                            <!-- BEGIN VALIDATION STATES-->
                            <div class="portlet light portlet-fit portlet-form bordered" style="background-color:#F8FFFF;" >
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="icon-bubble font-green"></i>
                                        <span class="caption-subject font-green bold uppercase">更改社团</span>
                                    </div>
                                <div class="portlet-body">
                                    <!-- BEGIN FORM-->
                                    <form action="${path}/admin/corporation/${corporation.id}/update" method="post" id="form_sample_2"  class="form-horizontal">
                                        <div class="form-body">
                                            <div class="alert alert-danger display-hide">
                                                <button class="close" data-close="alert"></button> 提交存在错误，请更正 </div>
                                            <div class="alert alert-success display-hide" id="successInfo">
                                                <button class="close" data-close="alert"></button> 新增成功! </div><br><br>

                                            <div class="form-group  margin-top-20">
                                                <label class="control-label col-md-3">社团名称
                                                    <span class="required"> * </span>
                                                </label>
                                                <div class="col-md-4">
                                                    <div class="input-icon right">
                                                        <i class="fa"></i>
                                                        <input id="name" value="${corporation.name}" type="text" class="form-control" name="name" /> </div>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="control-label col-md-3">导师&nbsp;&nbsp;</label>
                                                <div class="col-md-4">
                                                    <input id="tutor" value="${corporation.tutor}" name="tutor" type="text" class="form-control" />
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-md-3">社团座右铭&nbsp;&nbsp;</label>
                                                <div class="col-md-4">
                                                    <input id="motto" value="${corporation.motto}" name="motto" type="text" class="form-control" />
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-md-3">宗旨&nbsp;&nbsp;</label>
                                                <div class="col-md-4">
                                                    <input id="purpose" value="${corporation.purpose}" name="purpose" type="text" class="form-control" />
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-md-3">电话&nbsp;&nbsp;</label>
                                                <div class="col-md-4">
                                                    <input id="tel" value="${corporation.tel}" name="tel" type="text" class="form-control" />
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-md-3">email&nbsp;&nbsp;</label>
                                                <div class="col-md-4">
                                                    <input id="email" value="${corporation.email}" name="email" type="text" class="form-control" />
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-md-3">地址&nbsp;&nbsp;</label>
                                                <div class="col-md-4">
                                                    <input id="address" value="${corporation.address}" name="address" type="text" class="form-control" />
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-md-3">备注&nbsp;&nbsp;</label>
                                                <div class="col-md-4">
                                                    <input id="remark" value="${corporation.remark}" name="remark" type="text" class="form-control" />
                                                </div>
                                            </div>

                                            <div class="form-group last">
                                                <label class="control-label col-md-3">自我介绍
                                                </label>
                                                <div class="col-md-9">
                                                    <textarea id="introduction" value="${corporation.introduction}" class="ckeditor form-control" name="introduction" rows="6" data-error-container="#editor2_error"></textarea>
                                                    <div id="editor2_error"> </div>
                                                </div>
                                            </div>
                                        </div>


                                        <div class="form-actions">
                                            <div class="row">
                                                <div class="col-md-offset-3 col-md-9">
                                                    <button  type="submit" class="btn green">Submit</button>
                                                    <button type="button" class="btn default">Cancel</button>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                    <!-- END FORM-->
                                </div>
                            </div>
                            <!-- END VALIDATION STATES-->
                        </div>
                    </div>
                        </div>



























                    
                </div>
                <!-- END CONTENT BODY -->
            </div>
            <!-- END CONTENT -->
            <!-- BEGIN QUICK SIDEBAR -->
            <a href="javascript:;" class="page-quick-sidebar-toggler">
                <i class="icon-login"></i>
            </a>
            
            <!-- END QUICK SIDEBAR -->
        </div>
        <!-- END CONTAINER -->
        <!-- BEGIN FOOTER -->


        <script src="${path}/media/assets/global/plugins/jquery.min.js" type="text/javascript"></script>

        <script src="${path}/media/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
        <!-- END CORE PLUGINS -->
        <!-- BEGIN PAGE LEVEL PLUGINS -->
        <script src="${path}/media/assets/global/plugins/select2/js/select2.full.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/jquery-validation/js/additional-methods.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/bootstrap-markdown/lib/markdown.js" type="text/javascript"></script>
        <script src="${path}/media/assets/global/plugins/bootstrap-markdown/js/bootstrap-markdown.js" type="text/javascript"></script>

        <!-- BEGIN THEME GLOBAL SCRIPTS -->
        <script src="${path}/media/assets/global/scripts/app.min.js" type="text/javascript"></script>
        <!-- END THEME GLOBAL SCRIPTS -->
        <!-- BEGIN PAGE LEVEL SCRIPTS -->
        <script src="${path}/media/assets/pages/scripts/form-validation.min.js" type="text/javascript"></script>
        <!-- END PAGE LEVEL SCRIPTS -->
        <!-- BEGIN THEME LAYOUT SCRIPTS -->
        <script src="${path}/media/assets/layouts/layout/scripts/layout.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/layouts/layout/scripts/demo.min.js" type="text/javascript"></script>
        <script src="${path}/media/assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>

        <%--<%@include file="../../include/_admin_end.jsp" %>--%>
        <!-- END FOOTER -->
        <script>


            function submits(){
//                            setTimeout(createPlayer, 2000);

            }
            function createPlayer(){
                if ($("#successInfo").is(":hidden")) {
                    console.log("---132");
                } else {
                    console.log("---succ");
                }

            }
            //        $("form").submit(function() {
            //            console.log("---submit");
            //            return false;
            //        });


            function create(){

                console.log("---submit");
            }

            var checkStuId = function(){

                if ($("#studentId").val() != null && $("#studentId").val().length > 0) {

                    $.ajax({
                        url: "${path}" + "/admin/checkStuId/" + $("#studentId").val(),
                        type: "post",
                        dataType: "json",
                        success: function (rd) {
                            if (rd) {

                            } else {
                                $("#studentId").val(null);
                                alert("学号已存在");
                            }
                        }
                    })
                }
            }
        </script>
    </body>


</html>